<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var obj={
        name:"admin",
        age:18,
        sex:"男"
    }
    // 对象的增
    obj.name2="ZXT";

    // 对象的改
    obj.age=22;

    // 对象的删除
    delete obj.name2;
    console.log(obj)




    // var qfH5 = "牛！";

    // console.log(window)
    // console.log(window.qfH5)
    function fn(){
        //只要给window对象绑定了属性，相当于声明了一个全局变量
        window.abc = "hahaha";

        console.log(abc);
    }
    fn();
    console.log(abc);
</script>
</html>